import axios from '@/libs/axios'


//登陆
export const login = params => { return axios.post('api/login', params).then(res => res.data) };
//退出登陆
export const logout = params => { return axios.post('api/logout', params).then(res => res.data) };
//飞书扫码登录跳转地址
export const redirectUri = params => { return axios.post('api/redirectUri', params).then(res => res.data) };

//获取用户信息
export const getUserInfo = params => { return axios.get('api/system/user', params).then(res => res.data) };

//用户列表
export const userList = params => { return axios.post('api/system/userList', params).then(res => res.data) };
//更新用户
export const userSet = params => { return axios.post('api/system/userSet', params).then(res => res.data) };
//更新工厂用户
export const userGcSet = params => { return axios.post('api/system/userGcSet', params).then(res => res.data) };
//新增用户
export const userAdd = params => { return axios.post('api/system/userAdd', params).then(res => res.data) };
//新增工厂用户
export const userGcAdd = params => { return axios.post('api/system/userGcAdd', params).then(res => res.data) };
//飞书主体
export const userSubjects = params => { return axios.get('api/system/userSubjects', params).then(res => res.data) };
//飞书用户
export const userFsList = params => { return axios.post('api/system/userFsList', params).then(res => res.data) };
//工厂用户
export const userGcList = params => { return axios.post('api/system/userGcList', params).then(res => res.data) };
//飞书用户同步
export const userSync = params => { return axios.post('api/system/userSync', params).then(res => res.data) };
//飞书主体切换
export const userChangeSubject = params => { return axios.post('api/system/userChangeSubject', params).then(res => res.data) };
